PPC/CodeGen: fix lwa instruction generation
authorPeter Trommler <ptrommler@acm.org>
Sat, 1 Oct 2016 21:56:31 +0000 (17:56 -0400)
committerRaspbian forward porter <root@raspbian.org>
Fri, 30 Dec 2016 02:30:41 +0000 (02:30 +0000)
commitceacd8b43e17def567478fc304d1f1b70b7d411d
tree126dbf751793f42669b9624126daf03e1d8d92e7
parentc1b8fa0cfa7d316eab9e85ba5f531ac0415701fb
PPC/CodeGen: fix lwa instruction generation

Opcode lwa is a 64-bit opcode and allows a DS-form only.  This patch
generates lwa opcodes only when the offset is a multiple of 4.

Fixes #12621

Test Plan: validate

Reviewers: erikd, hvr, simonmar, austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2547

GHC Trac Issues: #12621

Gbp-Pq: Name fix-ppc-lwa-generation
compiler/nativeGen/PPC/CodeGen.hs